package cn.echo.hrm.exception;

public enum ErrorCode {
    CODE_200_SUCCESS(200,"操作成功"),
    CODE_500_SYSTEMERROR(500,"系统异常"),
    CODE_400_TENANT_EXSIT(400001,"已经入驻，请直接登录"),
    CODE_400_ADMIN_EXSIT(400002,"该管理员已经有机构了！请登录后添加新的机构");

    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private String message;

    ErrorCode(int code,String message){
        this.code = code;
        this.message = message;
    }
}
